<include file="Public:header" />
<include file="Public:left" />

<form method="post" enctype="multipart/form-data">
    <input type="hidden" name="id" <if condition="isset($data['order_id'])">value="{$data.order_id}"</if>/>
    <section>
        <h2><strong>订单详情</strong><a class="fr" href="{:url('order/index')}">返回订单列表</a></h2>

        <ul class="ulColumn2">

            <li>
                <span class="item_name" style="width:120px;">订单单号：</span>
                {$data['order_sn']}
            <li>
                <span class="item_name" style="width:120px;">订单金额：</span>
                {$data.total_price}元
            </li>
            <if condition="$data['voucher_id'] eq 0">
                <li>
                    <span class="item_name" style="width:120px;">优惠劵优惠金额：</span>
                    {$data.voucher_deduction}
                </li>
            </if>
            <li>
                <span class="item_name" style="width:120px;">商品：</span>
                <if condition="!empty($data['goods'])">
                <foreach name="data.goods" item="g">
                    <gt name="$key" value="0">
                        <br>
                        <span class="item_name" style="width:120px;"></span>
                    </gt>
                     <a href="{:url('goods/add_goods',array('id' => $g['product_id']))}">{$g.product_name}</a>&nbsp{$g.spec}&nbsp x{$g.count}&nbsp下单价格：{$g.product_price}元
                </foreach>
                </if>
            </li>
            <li>
                <span class="item_name" style="width:120px;">创建时间：</span>
                {$data.create_time|date="Y-m-d H:i:s",###}
            </li>
            <li>
                <span class="item_name" style="width:120px;">邮费：</span>
                {$data.postage}元
            </li>
            <li>
                <span class="item_name" style="width:120px;">收货地址：</span>
                {$data.address.province}&nbsp{$data.address.city}&nbsp{$data.address.country}&nbsp{$data.address.detail}
            </li>
            <li>
                <span class="item_name" style="width:120px;">收货人：</span>
                {$data.address.name}
            </li>
            <li>
                <span class="item_name" style="width:120px;">收货人手机：</span>
                {$data.address.mobile}
            </li>
            <gt name="$data.order_state" value="1">
                <li>
                    <span class="item_name" style="width:120px;">快递方式：</span>
                    {$data.express_type}
                </li>
                <li>
                    <span class="item_name" style="width:120px;">快递单号：</span>
                    {$data.express_num}
                </li>
                <li>
                    <span class="item_name" style="width:120px;">发货时间：</span>
                    {$data.sent_time|date="Y-m-d H:i:s",###}
                </li>
            </gt>
            <gt name="$data.pay_time" value="0">
                <li>
                    <span class="item_name" style="width:120px;">支付时间：</span>
                    {$data.pay_time|date="Y-m-d H:i:s",###}
                </li>
            </gt>
            <gt name="$data.refund_id" value="0">
                <li>
                    <span class="item_name" style="width:120px;">退款订单：</span>
                    <a href="{:url('order/refund_det',['id' => $data['refund']['refund_id']])}">{$data.refund.refund_sn}</a>
                </li>
            </gt>
            <li>
                <span class="item_name" style="width:120px;">备注：</span>
                {$data.remarks}
            </li>
            <li>
                <span class="item_name" style="width:120px;">状态：</span>
                <switch name="data.order_state">
                <case value="-1">关闭</case>
                <case value="0">待付款</case>
                <case value="1">已付款</case>
                <case value="2">已发货</case>
                <case value="3">完成</case>
                </switch>
            </li>
        </ul>
    </section>
</form>

</div>
</section>
</body>

</html>